<%@ page contentType="text/html; charset=utf-8"%>
<%@ taglib uri="http://java.sun.com/jstl/core_rt" prefix="c" %>
<style>
   fieldset{
      margin:0px;
   }
   select.viewfile{
      width:200px;
   }
   tr.label{
      font-size:16px;
      font-weight:bolder;
   }
   button.dispatcher{
          width: 100px;
          height:50px;
          color:green;
          font-size:15px;
          font-weight:bolder;
   }
</style>
<form id="fileForm" 
target="dframe"
enctype="multipart/form-data"
method="post"
>
<input type="hidden" name="uploaded" id="uploaded" value="${param.uploaded}"/>
<c:if test="${not empty param.workflowId}">
   <input type="hidden" name="workflowId" id="workflowId" value="${param.workflowId}"/>
   <input type="hidden" name="actionId" value="${actionId}"/>
</c:if>

<fieldset>
<legend>下发新文件</legend>
<table id="mytable" border="0" cellpadding="0" cellspacing="1" width="100%">	
<c:if test="${param.uploaded}">
	<tr>
		<td colspan="3">
			<input id="ufile" type="file" name="upLoad"/>
		</td>
	</tr>
</c:if>
<tr>
<td  colspan="3">选择接受人</td>
</tr>
	<tr class="label">
		<td width="30%">
			部门
		</td>
		<td width="30%">
			角色
		</td>
		<td width="30%">
			用户组织
		</td>
	</tr>
	
	<tr>
		<td width="30%">
			<select class="viewfile" multiple="multiple" size="15" id="groups">
			</select>
		</td>
		<td width="30%">
			<select  class="viewfile" multiple="multiple" id="roles" size="15">
			</select>
		</td>
		<td width="30%">
			<select  class="viewfile" size="15" id="custs">
			</select>
		</td>
	</tr>
	<tfoot>
	  <tr>
	  <td colspan='3' align="center">
	  <button type="button" class="dispatcher">
	  下发文件
	  </button>
	  </td>
	  </tr>
	</tfoot>
</table>
</fieldset>
</form>
<iframe style="display:none" name="dframe"></iframe>
<script type="text/javascript" src="scripts/apps/fileflow/file/addfile.js"></script>